$(function() {
	// 回显省信息
	var provinceText = $('#provinceUl [data-value="' + positionProvinceCode + '"]').html();
	$('#provinceText').html(provinceText);
	
	// 选择省显示对应的城市
	var param = {
		provinceCode: positionProvinceCode,
		time: new Date().getTime()
	}
	$.get(window.ctx + '/company/Company/listCities.action', param, function(result) {
		var $cityUl = $('#cityUl');
		$cityUl.empty();
		for (var i = 0; i < result.length; i++) {
			$cityUl.append('<li data-value="' + result[i].code + '">'+ result[i].name +'</li>');
		}
		// 回显城市信息
		var cityText = $('#cityUl [data-value="' + positionCityCode + '"]').html();
		$('#cityText').html(cityText);
	}, 'json');
	
	// 回显工作经验信息
	var workExperienceText = $('#workExperienceUl [data-value="' + positionWorkExperience + '"]').html();
	$('#workExperienceText').html(workExperienceText);
	
	
	// 回显学历要求信息
	var educationText = $('#educationUl [data-value="' + positionEducation + '"]').html();
	$('#educationText').html(educationText);
	
	// 回显福利待遇信息
	var $edit = $('#edit');
	var treatments = positionTreatment.split(',');
	for (var i = 0; i < treatments.length; i++) {
		$edit.before('<span class="lable">'+ treatments[i] +'<span>');
		$('#modalBox li:contains("'+ treatments[i] +'")').addClass('active');
	}
})